﻿@using KRM.Core.Library
@model KRM.Core.tblTicketRelation

@{
    ViewBag.Title = "TicketRelationDetail";
}

<form action="/EmailTicket/SaveTicketRelation" id="fr-TicketRelation" method="POST" class="form-horizontal" role="form">
    <input type="hidden" name="RelationID" value="@Model.RelationID"/>
    <input type="hidden" name="TicketID" value="@Model.TicketID"/>
    <input type="hidden" name="UserID" value="@Users.Current(User.Identity.Name).UserID"/>
    <div class="form-group">
        <label class="col-md-3 control-label">Type</label>
        <div class="col-md-9">
            @Html.DropDownList("RelationTypeID", null, new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-3 control-label">Value</label>
        <div class="col-md-9">
            <input id="txtValue" type="text" name="Value" class="form-control" required="required" value="@Model.Value">
        </div>
    </div>

    <button type="submit" id="btnSave" class="btn btn-primary" onclick="" style="float: right; margin-left: 10px;">Save</button>
    <a id="btnNew" class="btn btn-primary" onclick="ticketrelationdetail(0)" style="float: right; margin-left: 10px;">New</a>
</form>
